#include "ProcessPool.hpp"
#include "task.hpp"
#include <iostream>
#include <vector>
int main()
{
    ProcessPool ppool;
    srand((unsigned int)time(nullptr));
    vtask vv;
    for(size_t i = 0;i < 10;i++)
    {
        int n = rand() % vv.v.size();
        //task a = vtask[n];
        //a();
        //std::cout << "n->" << n << std::endl;
        ppool.run(n);
    }
    ppool.ExitPro();
    return 0;
}